-- GENERATED SPELL FOR [Dark Iron Steamsmith] --


function spell0_5840(pUnit, Event) --@Steam Jet,Self--
pUnit:FullCastSpellOnTarget(11983,pUnit)
pUnit:RegisterEvent('Sorts_5840', 10306, 1)
end

function Sorts_5840(pUnit, Event)
local choix_sorts_5840 = math.random(0, 0)
if choix_sorts_5840 == 0 then
pUnit:RegisterEvent('spell0_5840', 1, 1)
end
end

function mob5840_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_5840', math.random(1500, 3000), 1)
end

function mob5840_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5840_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5840_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(5840, 1, 'mob5840_Action')
RegisterUnitEvent(5840, 2, 'mob5840_Leave')
RegisterUnitEvent(5840, 3, 'mob5840_Kill')
RegisterUnitEvent(5840, 4, 'mob5840_Die')
